#ifndef _INTERRUPT_H_
#define _INTERRUPT_H_

void Interrupt_Init();


#define C_ErrRecoveryTime   50//10

#define  	OVP0_ON					{_ovp0e		=	1;}
#define     OVP0_OFF				{_ovp0e		=	0;}
#define 	CLR_OVP0_OVP0F			{_ovp0f		=	0;}


#define  	OVP1_ON					{_ovp1e		=	1;}
#define     OVP1_OFF				{_ovp1e		=	0;}
#define 	CLR_OVP1_OVP1F			{_ovp1f		=	0;}

#define  	OVP2_ON					{_ovp2e		=	1;}
#define     OVP2_OFF				{_ovp2e		=	0;}
#define 	CLR_OVP2_OVP2F			{_ovp2f		=	0;}

#define  	OVP4_ON					{_ovp4e		=	1;}
#define     OVP4_OFF				{_ovp4e		=	0;}
#define 	CLR_OVP2_OVP4F			{_ovp4f		=	0;}

#define  	OVP5_ON					{_ovp5e		=	1;}
#define     OVP5_OFF				{_ovp5e		=	0;}
#define 	CLR_OVP5_OVP5F			{_ovp5f		=	0;}

#define  	OVP6_ON					{_ovp6e		=	1;}
#define     OVP6_OFF				{_ovp6e		=	0;}
#define 	CLR_OVP6_OVP6F			{_ovp6f		=	0;}

#define  	OVP7_ON					{_ovp7e		=	1;}
#define     OVP7_OFF				{_ovp7e		=	0;}
#define 	CLR_OVP7_OVP7F			{_ovp7f		=	0;}

#define  	OVP8_ON					{_ovp8e		=	1;}
#define     OVP8_OFF				{_ovp8e		=	0;}
#define 	CLR_OVP8_OVP8F			{_ovp8f		=	0;}

#define  	MF0_Interrupt_ON		{_mf0e		=	1;}
#define     MF0_Interrupt_OFF		{_mf0e		=	0;}
#define 	CLR_MF0_MF0F			{_mf0f		=	0;}

#define  	MF1_Interrupt_ON		{_mf1e		=	1;}
#define     MF1_Interrupt_OFF		{_mf1e		=	0;}
#define 	CLR_MF1_MF1F			{_mf1f		=	0;}

#define  	MF2_Interrupt_ON		{_mf2e		=	1;}
#define     MF2_Interrupt_OFF		{_mf2e		=	0;}
#define 	CLR_MF2_MF2F			{_mf2f		=	0;}

#define  	MF3_Interrupt_ON		{_mf3e		=	1;}
#define     MF3_Interrupt_OFF		{_mf3e		=	0;}
#define 	CLR_MF3_MF3F			{_mf3f		=	0;}

#define  	MF4_Interrupt_ON		{_mf4e		=	1;}
#define     MF4_Interrupt_OFF		{_mf4e		=	0;}
#define 	CLR_MF4_MF4F			{_mf4f		=	0;}

#define  	FJTIME_Interrupt_ON		{_fjtme		=	1;}
#define     FJTIME_Interrupt_OFF	{_fjtme		=	0;}
#define 	CLR_FJTIME_FJTMF		{_fjtmf		=	0;}

#define  	FJEQU_Interrupt_ON		{_fjeque		=	1;}
#define     FJEQU_Interrupt_OFF		{_fjeque		=	0;}
#define 	CLR_FJEQU_FJEQUF		{_fjequf		=	0;}

#define  	ERSG_Interrupt_ON		{_ersge		=	1;}
#define     ERSG_Interrupt_OFF		{_ersge		=	0;}
#define 	CLR_ERSG_ERSGF			{_ersgF		=	0;}

extern		vu16 	sum_16_HF;
extern		vu16	fjtmer_state;
extern		vu8		OVP1_Cnt;
extern		vu8		u8_MaxPhase , PotMoveOutStatus ,PotMoveOutCnt ;
extern		vu8			CheckPanTiming;
//extern	 volatile bit			xiezhen_ovc_flag;
extern	 volatile bit			OVP5_Over_I_flag,OVP3_Over_I_flag,OVP4_Over_I_flag,OVP2_Over_I_flag;
#endif
	
